/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package servicios;
import java.util.*;

import dao.CarreraDaoLocal;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import modelo.Carrera;

/**
 *
 * @author ADM
 */
@Stateless
public class CarreraLn implements CarreraLnLocal {
    @EJB
    private CarreraDaoLocal carreraDao;

    public void registrar(Carrera carrera)
    {
        carreraDao.crear(carrera);
    }

    public void modificar(Carrera carrera) {
        carreraDao.editar(carrera);
    }

    public void eliminar(Carrera carrera)
    {
      carreraDao.remover(carrera);
    }

    public List<Carrera> getLista() {
        return carreraDao.getTodos();
    }






    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")
 
}
